$(function(){
	//鼠标经过菜单显示下拉,否则移除
	$(".dropdown").hover(function(){
    	var $this = $(this);
    	$(".dropdown").removeClass('open');
    	$this.addClass('open');
	},function(){
		$(".dropdown").removeClass('open');
	});

    $('#myCarousel').carousel({
        interval: 3000
    })
});
//时间控件
function datetime(id){
	$("#"+id).datetimepicker({
        format: 'yyyy-mm-dd',
        minView:'month',
        language: 'zh-CN',
        autoclose:true
    }).on("click",function(){
        //$("#datetimeStart").datetimepicker("setEndDate",$("#datetimeEnd").val())
    });
}
//调用bootstrapDialog弹出窗口
function bootstrapDialog(title,url){
    BootstrapDialog.show({
      title: title,
      size : BootstrapDialog.SIZE_NORMAL, //默认尺寸
      message : $("<div></div>").load(url),
      buttons : [{
        label : "取消",
        action : function(dialog){
          dialog.setTitle("title2");       //操作title
          dialog.setMessage("message1");   //操作message
          dialog.close();
        }
      },{
        label : "确定",
        action : function(dialog){
          dialog.close();
        }
      }]
    });
}